package com.woniu.stafforder.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 订单详细
 * @TableName t_order_detail
 */
@TableName(value ="t_order_detail")
@Data
public class OrderDetail implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 
     */
    private Long orderNum;

    /**
     * 状态
     */
    private Integer status;

    /**
     * 商品id
     */
    private Integer itemId;

    /**
     * 商品名称
     */
    private String itemName;

    /**
     * 商品单体价格
     */
    private BigDecimal itemPrice;

    /**
     * 购买数量
     */
    private Integer buyNum;

    /**
     * 用户手机号码
     */
    private String userTelephone;

    /**
     * 支付金额
     */
    private BigDecimal payMoney;

    /**
     * 订单类型id
     */
    private Integer orderTypeId;

    /**
     * 订单业务类型id
     */
    private Integer orderServiceId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 商品资费(及时类订单)
     */
    private BigDecimal itemCost;

    private String stateName;
    private String typeName;
    private String serviceName;
    private Integer orderPayId;
    

    /**
     * 一级分类名
     */
    private String oneTypeName;
    /**
     * 二级分类名
     */
    private String twoTypeName;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}